Next | Prev | Up | Top | Contents | Index

Debugging

The compiler system provides a debugging tool, dbx (described in detail in the dbx User's Guide). In addition, CASEVision/WorkShop(TM) contains debugging tools. For information about obtaining WorkShop for your computer, contact your dealer or sales representative.

Before using dbx, specify the -g driver option (see Table 2-4) to produce executables containing information that the debugger can use. Click the word dbx to view the dbx(1) reference page.

Driver Options for Debugging
Option Purpose
-g0Produces a program object with a minimum of source-level debugging information. This is the default. Reduces the size of the program object but allows optimizations. Use this option with the -O option after you finish debugging.
-g, -g2Produces additional debugging information for full symbolic debugging. This option overrides the optimization options (-Onum).
-g3Produces additional debugging information for full symbolic debugging of fully optimized code. This option makes the debugger less accurate. You can use -g3 with an optimization option (-Onum).



Next | Prev | Up | Top | Contents | Index